]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
keyboard: Disable unredirection when the OSK is shown
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 4 Jun 2024 16:24:25 +0000 (18:24 +0200)
committerMarge Bot <marge-bot@gnome.org>
Wed, 5 Jun 2024 15:26:02 +0000 (15:26 +0000)
The OSK might be wanted over fullscreen windows triggering
unredirection, and the unredirection should be temporarily
overridden in that case.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7692
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3356>

js/ui/keyboard.js

index 73ff1d212a4c3de1d59ab7331eab15dd2a4edbf0..70101e93d3f1bb55291ca38e35d820d1347988f2 100644 (file)
@@ -1787,6 +1787,8 @@ export const Keyboard = GObject.registerClass({
     }
 
     _animateShow() {
+        Meta.disable_unredirect_for_display(global.display);
+
         if (this._focusWindow)
             this._animateWindow(this._focusWindow, true);
 
@@ -1841,6 +1843,7 @@ export const Keyboard = GObject.registerClass({
 
     _animateHideComplete() {
         Main.layoutManager.keyboardBox.hide();
+        Meta.enable_unredirect_for_display(global.display);
     }
 
     gestureProgress(delta) {